package com.itheima.reggie.service;

import com.itheima.reggie.dto.SetmealDto;
import com.itheima.reggie.pojo.Dish;
import com.itheima.reggie.pojo.Page;
import com.itheima.reggie.pojo.Setmeal;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

public interface SetMealService {
    void saveWithDish(SetmealDto setmealDto);

    Page<SetmealDto> findByPage(Integer pageNum, Integer pageSize, String name);
    @Transactional
    void deleteById(Long[] ids);

    void updateStatus(Integer status,Long[] ids);

    @Transactional
    void updateSetMeal(SetmealDto setmealDto);

    SetmealDto findSetmeal(Long id);

    List<Setmeal> findBysetmealId(Long categoryId, Integer status);

    List<Map<String,Object>> findSetmealDish(Long setmealId);
}
